package com.shortlink.admin.dao.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.shortlink.admin.dao.entity.ShortLinkDO;
import com.shortlink.admin.dto.transform.GroupShortLinkCountDTO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
/**
 * 短链接持久层
 *
 * @author wp
 */
@Mapper
public interface ShortLinkMapper extends BaseMapper<ShortLinkDO> {
    /**
     * 获取分组短链接数量
     */
    List<GroupShortLinkCountDTO> listGroupShortLinkCount(@Param("userId") Long userId, @Param("groupIds") List<Long> groupIds);
}
